/// msg : "操作成功"
/// code : 200
/// data : {"id":"","resourceName":"视频资源1","type":1,"price":0,"description":"","orgId":"","resPath":"","teacherId":"","useCount":91,"createTime":1637639451000,"modifyTime":1637800837000,"deleted":0}

class ResourceInfoDto {
  ResourceInfoDto({
    String? msg,
    int? code,
    Data? data,
  }) {
    _msg = msg;
    _code = code;
    _data = data;
  }

  ResourceInfoDto.fromJson(dynamic json) {
    _msg = json['msg'];
    _code = json['code'];
    _data = json['data'] != null ? Data.fromJson(json['data']) : null;
  }
  String? _msg;
  int? _code;
  Data? _data;

  String? get msg => _msg;
  int? get code => _code;
  Data? get data => _data;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['msg'] = _msg;
    map['code'] = _code;
    if (_data != null) {
      map['data'] = _data?.toJson();
    }
    return map;
  }
}

/// id : ""
/// resourceName : "视频资源1"
/// type : 1
/// price : 0
/// description : ""
/// orgId : ""
/// resPath : ""
/// teacherId : ""
/// useCount : 91
/// createTime : 1637639451000
/// modifyTime : 1637800837000
/// deleted : 0

class Data {
  Data({
    String? id,
    String? resourceName,
    int? type,
    int? price,
    String? description,
    String? orgId,
    String? resPath,
    String? teacherId,
    int? useCount,
    int? createTime,
    int? modifyTime,
    int? deleted,
  }) {
    _id = id;
    _resourceName = resourceName;
    _type = type;
    _price = price;
    _description = description;
    _orgId = orgId;
    _resPath = resPath;
    _teacherId = teacherId;
    _useCount = useCount;
    _createTime = createTime;
    _modifyTime = modifyTime;
    _deleted = deleted;
  }

  Data.fromJson(dynamic json) {
    _id = json['id'];
    _resourceName = json['resourceName'];
    _type = json['type'];
    _price = json['price'];
    _description = json['description'];
    _orgId = json['orgId'];
    _resPath = json['resPath'];
    _teacherId = json['teacherId'];
    _useCount = json['useCount'];
    _createTime = json['createTime'];
    _modifyTime = json['modifyTime'];
    _deleted = json['deleted'];
  }
  String? _id;
  String? _resourceName;
  int? _type;
  int? _price;
  String? _description;
  String? _orgId;
  String? _resPath;
  String? _teacherId;
  int? _useCount;
  int? _createTime;
  int? _modifyTime;
  int? _deleted;

  String? get id => _id;
  String? get resourceName => _resourceName;
  int? get type => _type;
  int? get price => _price;
  String? get description => _description;
  String? get orgId => _orgId;
  String? get resPath => _resPath;
  String? get teacherId => _teacherId;
  int? get useCount => _useCount;
  int? get createTime => _createTime;
  int? get modifyTime => _modifyTime;
  int? get deleted => _deleted;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['resourceName'] = _resourceName;
    map['type'] = _type;
    map['price'] = _price;
    map['description'] = _description;
    map['orgId'] = _orgId;
    map['resPath'] = _resPath;
    map['teacherId'] = _teacherId;
    map['useCount'] = _useCount;
    map['createTime'] = _createTime;
    map['modifyTime'] = _modifyTime;
    map['deleted'] = _deleted;
    return map;
  }
}
